Skip to content

Live filter honours the glob exemption for gitignored paths - #1776

Open
thekevinbot wants to merge 7 commits into
mainfrom
bot/1774-live-filter-exemption-1118
Open

thekevinbot wants to merge 7 commits into
mainfrom
bot/1774-live-filter-exemption-1118

Conversation

@thekevinbot

@thekevinbot thekevinbot commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #1774

The live event filter now drops exactly what the startup scan skips: route_file_event calls a new scanner::gitignore_drops, which judges each entry on the way to the path against the .gitignore files in force there and exempts any a table glob spells (the scan's Walk::admits rule). enters_dir, the watch walk's check from #1775, now goes through the same function, so there is one copy of the rule.

Red: integration test a_file_a_glob_spells_under_a_gitignored_directory_leaves_the_index_when_deleted failed in CI job 135304168118 (panicked at packages/rust/tests/config_gitignore_watch.rs:74:5: events: []).

Manual exercise: repo with .gitignore = build/, dirsql server -c with a table globbing build/x.json; SELECT * FROM t returned [{"base":"x.json"}], then after moving build/x.json away it returned [].

E2E Verification

  • Ran e2e suites locally for every affected SDK
  • Python SDK e2e: pass
  • TypeScript SDK e2e: pass
  • Rust core e2e (if applicable): pass (cargo test --test config_gitignore_watch --test watch_gitignore_change --test watcher)
  • packages/python/e2e-attestations/<branch>.json receipt written if packages/python changed (just e2e-attest-python)
  • packages/ts/e2e-attestations/<branch>.json receipt written if packages/ts changed (just e2e-attest-ts)
  • Command(s) run: testing-conventions e2e attest 'uv run python -m pytest tests/e2e/watch_fault_test.py tests/e2e/fanout_test.py tests/e2e/fresh_declared_repros_test.py tests/e2e/glob_speed_gitignore_test.py tests/e2e/watch_speed_test.py -x -q'; testing-conventions e2e attest 'pnpm test:e2e'
  • Result summary: Python 11 passed; TypeScript 29 passed.

Changelog / Migrations

  • Changelog fragment added under <root>/<pkg>/changelog.d/ for each changed package (or: skip-changelog trailer on a commit with reason)
  • Migration fragment with the same slug added under <root>/<pkg>/migrations.d/ for each changed package (every subsection but Summary _None._ when nothing breaks)

@thekevinbot
thekevinbot marked this pull request as ready for review November 19, 2026 03:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A deleted file under a gitignored path a glob names stays in the index

1 participant